package com.lyh.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.lyh.common.annotation.Excel;
import com.lyh.common.core.domain.BaseEntity;

/**
 * 收支明细对象 lyh_operatin_info
 * 
 * @author ruoyi
 * @date 2023-05-11
 */
@Data
@TableName("lyh_operation_info")
public class OperationInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId
    private Long id;

    /** 用户 */
    @Excel(name = "用户")
    private Long userId;

    /** 类别-现金，消费券，资产通证 */
    @Excel(name = "类别-现金，消费券，资产通证")
    private String type;

    /** 收入、支出 */
    @Excel(name = "收入、支出")
    private String status;

    /** 来源、去向 */
    @Excel(name = "来源、去向")
    private String origin;

    /** 收支金额 */
    @Excel(name = "收支金额")
    private BigDecimal price;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operationTime;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }
}
